package com.zdj.presentation.modules.user.adapters;

import android.content.Context;
import android.databinding.DataBindingUtil;
import android.view.LayoutInflater;
import android.view.ViewGroup;

import com.easyrecyclerview.adapter.BaseViewHolder;
import com.easyrecyclerview.adapter.RecyclerArrayAdapter;
import com.zdj.presentation.R;
import com.zdj.presentation.databinding.RowUserBinding;
import com.zdj.presentation.modules.user.holders.UserViewHolder;
import com.zdj.presentation.modules.user.models.UserModel;

/**
 * Created by zdj on 16-5-29.
 */

public class UserAdapter extends RecyclerArrayAdapter<UserModel> {

    public UserAdapter(Context context) {
        super(context);
    }

    @Override
    public BaseViewHolder OnCreateViewHolder(ViewGroup parent, int viewType) {
        return new UserViewHolder(DataBindingUtil.inflate(layoutInflater,R.layout.row_user,parent,false));
    }
}
